package com.evaluation.kexingcp.pay.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * ${tableComment}
 *
 * @author pig
 * @date 2024-06-25 11:11:36
 */
@Data
@TableName("pay_goods")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "${tableComment}")
public class PayGoodsEntity extends Model<PayGoodsEntity> {


	/**
	* id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

	/**
	* 套餐名字
	*/
    @Schema(description="套餐名字")
    private String goodsName;

	/**
	* 套餐价格
	*/
    @Schema(description="套餐价格")
    private BigDecimal goodsPrice;

	/**
	* 是否上架
	*/
    @Schema(description="是否上架")
    private String goodsState;

	/**
	* 创建人
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 修改人
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改人")
    private String updateBy;

	/**
	* 修改时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改时间")
    private LocalDateTime updateTime;

	@Schema(description="商品类型1：套餐 2：短信")
	private int goodsType;

	@Schema(description="商品配置")
	private String goodsConfig;

	@Schema(description="商品排序")
	private int goodsSort;
}